package com.newtouch.bxzs.database.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.newtouch.bxzs.database.model.*;

import java.util.List;

/**
 * 映射机构关系Service层
 *
 * <p>
 * <b>History:</b>
 * <table border="1">
 * <tr>
 * <th>Date</th>
 * <th>Operator</th>
 * <th>Memo</th>
 * </tr>
 * <tr>
 * <td>2020/12/22 14:22</td>
 * <td>Amour</td>
 * <td>Create</td>
 * </tr>
 * </table>
 *
 * @author lhx
 * @version 1.0.0
 * @since 1.0.0
 */
public interface OrganizationMappingService {
    /**
     * 根据机构名称查询映射关系信息
     *
     * @param organizationVO
     *
     * @return
     */
    IPage<OrganizationMapBO> getMappingList(OrganizationVO organizationVO);

    /**
     * 根据用户机构编码查询映射关系信息
     *
     * @param
     * @return
     */
    OrganizationMapTotalBO getMappingListByCode(OrganizationMapByUserVO organizationMapByUserVO);
    /**
     * 根据主键映射关系详情
     *
     * @param orgMappId
     *
     * @return
     */
    OrganizationMapBO getOrganizationMappingInfo(String orgMappId);
    /**
     * 新增或者修改一条映射关系
     *
     * @param organizationMapModifyVO
     *
     * @return
     */
    int modifyMapping(OrganizationMapModifyVO organizationMapModifyVO);
    /**
     * 设置映射关系为不可见
     *
     * @param organizationMappingIds
     *
     * @return
     */
    int deleteMapping(List<String> organizationMappingIds);

    /**
     * 修改映射关系状态
     *
     * @param organizationMapVO
     *
     * @return
     */
    int modifyMappingState(OrganizationMapVO organizationMapVO);


}
